package cn.edu.cdu.health.service;

import cn.edu.cdu.health.common.BizException;
import cn.edu.cdu.health.entity.PageDto;
import cn.edu.cdu.health.entity.User;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface UserService extends IService<User> {

    User getById(Integer id) throws BizException;

    User findByUserName(String userName);

    User findByPhone(String phone);  // 确保这个方法在接口中正确定义

    boolean updateUserInfo(User user);

    User findByPhoneOrEmail(String account);
}